package com.it.sun.easychat.model.exception;

/**
 * @author sunmannian
 * @ClassName com.it.sun.easychat.model.exception.ApplicationException
 * @Date 2020/5/24 16:47
 * @Version V1.0
 * Description  <请输入一句话描述该类功能>
 * Copyright (C) 北京中电兴发科技有限公司  since 2020/5/24
 */
public class ApplicationException extends RuntimeException {

    private String message;
    private int code;

    public ApplicationException() {
    }

    public ApplicationException(String message) {
        super(message);
        this.message = message;
    }

    public ApplicationException(String message, int code) {
        super(message);
        this.message = message;
        this.code = code;
    }

    @Override
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }
}
